// components/classic/nav/index.js
Component({
 properties: {
       title:String,
       isLatest:Boolean,
       isFirst:Boolean,
  },
data: {
     yesLeft:"images/triangle@left.png",
     noLeft:"images/triangle.dis@left.png",
     yesRight:"images/triangle@right.png",
     noRight:"images/triangle.dis@right.png"
  },
  /**
   * 组件的方法列表
   */
  methods: {
     onLeft(){
       if(!this.properties.isLatest){
         this.triggerEvent("next",{})
       }
     },
     onRight(){
       if(!this.properties.isFirst){
         this.triggerEvent("previous",{})
       }
     }
  }
})
